<?php
namespace Menory\Unit\HttpClient;

abstract class AHttpClient {

    protected $connectTimeout = 30000;    // 30 second
    protected $readTimeout    = 80000;

    /**
     * @param $headers
     * @return array
     */
    protected function getHttpHeaders($headers) {

        $httpHeader = [];
        foreach ($headers as $key => $value) {
            array_push($httpHeader, $key . ":" . $value);
        }
        return $httpHeader;

    }

}